import json


def build_data(file_path):
    # 读取数据文件，转化成参数化格式的数据
    with open(file_path,"r",encoding="utf-8") as f:
        data=json.load(f)
        new_list=[]
        for item in data:
            # print(item.values())
            # print(tuple(item.values()))    #强转
            new_list.append(tuple(item.values()))
        return new_list

        # print(data)


if __name__ == '__main__':
    result=build_data("../data/login_data.json")
    print(result)
